package com.example.junitforlab;

import static org.junit.Assert.*;

import org.junit.Test;

public class tritypTest {
    trityp tri = new trityp();
    @Test
    public void triang() {
        assertEquals(4,tri.Triang(-1,-2,-3));
        assertEquals(4,tri.Triang(1,2,7));
        assertEquals(1,tri.Triang(6,8,10));

        assertEquals(3,tri.Triang(3,3,3));
        assertEquals(2,tri.Triang(3,3,5));
        assertEquals(2,tri.Triang(2,3,2));
        assertEquals(2,tri.Triang(5,3,3));
        assertEquals(4,tri.Triang(2,5,2));
    }
}